/*
 * Here we work everything related to the  Pre process of the data.
 */

package workflowminer.AITonOM;

/**
 *
 * @Diana Leon
 */

import java.io.FileNotFoundException;
import java.io.IOException;
import pATT.core.Instances;
import java.io.BufferedReader;
import java.io.FileReader;


public class DataPreprocess {



    public DataPreprocess()
    {

    }

    public void readFromArff(String arffAddress) throws FileNotFoundException, IOException
    {
        //here we should send the information added in the text panel containing the arff address.
        BufferedReader reader = new BufferedReader(new FileReader(arffAddress));
        Instances data = new Instances(reader);
        reader.close();
        // setting class attribute
        data.setClassIndex(data.numAttributes() - 1);
    }


}
